< previous page page_542 next page >

Page 542
Returning to the Visual Basic Design Window
Closing the Visual Data Manager window or selecting File, Exit takes you back to Visual Basic's main design window. (You also can switch back and forth between the Data Manager and the Visual Basic design environment.) Since Visual Data Manager is a complete application, you may want to compile it and add a shortcut to its EXE file to your Windows desktop or Start menu. This will save having to load Visual Basic each time you want to run Visual Data Manager.
Viewing or Modifying the Structure of a Table
After you create a table, you can view its structure and even modify it to a certain extent. Right-click the table's name in the Database window, and select Design from the context menu that appears. The Table Structure dialog box that appears is the same one that you worked with in the preceding sections. From here, you can view the structure of the fields and indexes that comprise the table.
After a table has been created, you can't modify a field's type or size from within Visual Data Manager. You can, however, add, delete, or rename fields. You can also change some of the properties of the fields. As with fields, you can't modify the structure of your table's indexes, although you can add, delete, and rename indexes.
Renaming or Deleting a Table
Right-clicking a table name in the Database window also presents you with the opportunity either to rename or delete a table.
Selecting Rename from the context menu places the table's name in an editing box; you can simply type the new name into the box and press Enter. Press Escape if you decide not to change the table's name.
Selecting Delete presents you with a confirmation dialog box. If you click Yes in this dialog box, the table is irrevocably removed from the database.
Copying a Table
If you want to make a copy of a table, you can choose Copy Structure from the context menu presented after you right-click the table's name in the Database window.
In the Copy Structure dialog box, select the name of the table to be copied. The Target Database text box contains the name of the current database; if you want to copy the table into a different database, you can specify the desired destination here. The Copy Indexes check box is checked by default; clear it if you don't want the new table to contain the same indexes as the old one. The Copy Data check box, which is clear by default, allows you to copy the records contained in the table to the new table. If you leave this check box clear, your new table will have the same structure as the original table but will contain no data. After you make your selections, click OK to create the new table.

 
< previous page page_542 next page >